-- GENERATED SPELL FOR [Yanis the Mystic] --


function spell0_23932(pUnit, Event) --@Throw Dragonflayer Harpoon,n/a--
pUnit:FullCastSpellOnTarget(42870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23932', 850, 1)
end

function Sorts_23932(pUnit, Event)
local choix_sorts_23932 = math.random(0, 0)
if choix_sorts_23932 == 0 then
pUnit:RegisterEvent('spell0_23932', 1, 1)
end
end

function mob23932_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23932', math.random(1500, 3000), 1)
end

function mob23932_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23932_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23932_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23932, 1, 'mob23932_Action')
RegisterUnitEvent(23932, 2, 'mob23932_Leave')
RegisterUnitEvent(23932, 3, 'mob23932_Kill')
RegisterUnitEvent(23932, 4, 'mob23932_Die')
